package org.ocean.general.sample.conditional;
public class JoinConditional {
    private JoinRelations joinRelations;
    private Sqls sqls;

    public Sqls getSqls() {
        return sqls;
    }

    public void setSqls(Sqls sqls) {
        this.sqls = sqls;
    }

    public JoinRelations getJoinRelations() {
        return joinRelations;
    }

    public void setJoinRelations(JoinRelations joinRelations) {
        this.joinRelations = joinRelations;
    }
    public JoinConditional(){};
    public JoinConditional(Builder builder){
        this.sqls = builder.sqls;
        this.joinRelations = builder.joinRelations;
    }
    public static Builder builder() {
        return new Builder();
    }
    public static class Builder{
        private JoinRelations joinRelations;
        private Sqls sqls;

        public Sqls getSqls() {
            return sqls;
        }

        public void setSqls(Sqls sqls) {
            this.sqls = sqls;
        }

        public Builder(){

        }

        public JoinRelations getJoinRelations() {
            return joinRelations;
        }

        public void setJoinRelations(JoinRelations joinRelations) {
            this.joinRelations = joinRelations;
        }


        public JoinConditional build(){
            return new JoinConditional(this);
        }
        public Builder join(JoinRelations joinRelations,Sqls sqls) {
            this.sqls = sqls;
            this.joinRelations = joinRelations;
            return this;
        }
    }
}
